testgtk: Fix a crash
authorMatthias Clasen <mclasen@redhat.com>
Wed, 29 May 2019 15:05:06 +0000 (15:05 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 29 May 2019 15:07:01 +0000 (11:07 -0400)
Somebody forgot to update the signal handler
here when changing the size-allocate signal.

tests/testgtk.c

index 7f0e6a0e8d9ea9285d180f1d4734048070567c42..20b3ba3d2494bf1ea2a318369a703f5b08b9da2a 100644 (file)
@@ -5219,15 +5219,16 @@ create_surface_states (GtkWidget *widget)
  */
 
 static void
-size_allocate_callback (GtkWidget     *widget,
-                       GtkAllocation *allocation,
-                       int            baseline,
-                       gpointer       data)
+size_allocate_callback (GtkWidget *widget,
+                       int        width,
+                        int        height,
+                       int        baseline,
+                       gpointer   data)
 {
   GtkWidget *label = data;
   gchar *msg;
 
-  msg = g_strdup_printf ("size: %d x %d\n", allocation->width, allocation->height);
+  msg = g_strdup_printf ("size: %d x %d\n", width, height);
 
   gtk_label_set_text (GTK_LABEL (label), msg);